package cc.lj.internal.coupons.domain.ticket.model.vo.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketMainDO;
import cc.lj.internal.coupons.infrastructure.po.TicketMainPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 电子券批主表 PO 与 DO之间的转换
 * @author liangxifeng
 * @date 2022-06-14
 */
@Mapper
public interface TicketMainPOConvertDO {
    TicketMainPOConvertDO INSTANCE = Mappers.getMapper(TicketMainPOConvertDO.class);
    //do to po
    TicketMainPO convert(TicketMainDO ticketMainDO);

    //po to do
    TicketMainDO convert(TicketMainPO ticketBatchPO);
}
